import request from '@/utils/request'

//************************************** 监测方案列表 *******************************************

// 分页查询监测方案列表
export function findOfferInfoMonitor(params) {
  return request({
    url: `/offermonitor/findOfferInfoMonitor`,
    method: 'get',
    params
  })
}

// 分页查询历史监测方案列表
export function findHistoryOfferInfoMonitor(params) {
  return request({
    url: `/offermonitor/findHistoryOfferInfoMonitor`,
    method: 'get',
    params
  })
}

// 新增监测方案信息
export function saveOfferMonitor(data) {
  return request({
    url: `/offermonitor/saveOfferMonitor`,
    method: 'post',
    data
  })
}

// 修改监测方案信息
export function modifyOfferMonitor(data) {
  return request({
    url: `/offermonitor/modifyOfferMonitor`,
    method: 'post',
    data
  })
}

// 新增监测方案(只添加方案，不添加项目)
export function saveOfferMonitorScheme(data) {
  return request({
    url: `/offermonitor/saveOfferMonitorScheme`,
    method: 'post',
    data
  })
}

// 指定业务员下拉选择
export function findMonitorAppointUser(params) {
  return request({
    url: `/offermonitor/findMonitorAppointUser`,
    method: 'get',
    params
  })
}

// 关联任务单号下拉选择
export function findMonitorTaskCode(params) {
  return request({
    url: `/offermonitor/findMonitorTaskCode`,
    method: 'get',
    params
  })
}

// 根据监测方案id查看监测方案基础信息
export function findOfferByMonitorId(monitorId) {
  return request({
    url: `/offermonitor/findOfferByMonitorId/${monitorId}`,
    method: 'get'
  })
}

// 根据监测方案详情id查看详情信息
export function findOfferDetailByMonitorSchemeId(monitorSchemeId) {
  return request({
    url: `/offermonitor/findOfferDetailByMonitorSchemeId/${monitorSchemeId}`,
    method: 'get'
  })
}

// 复制监测方案
export function copyOfferInfoMonitorScheme(monitorSchemeId) {
  return request({
    url: `/offermonitor/copyOfferInfoMonitorScheme/${monitorSchemeId}`,
    method: 'get'
  })
}

// 删除监测方案
export function deleteOfferInfoMonitorScheme(data) {
  return request({
    url: `/offermonitor/deleteOfferInfoMonitorScheme`,
    method: 'post',
    data
  })
}

// 查询参与评审人员
export function findOfferInfoMonitorUser() {
  return request({
    url: `/offermonitor/findOfferInfoMonitorUser`,
    method: 'get'
  })
}

// 监测方案提交评审
export function checkJudgeRecordMonitor(data) {
  return request({
    url: `/simulation/checkOfferPro`,
    method: 'post',
    data
  })
}

// 评审进度查看
export function findReviewSchedule(monitorSchemeId) {
  return request({
    url: `/offermonitor/findReviewSchedule/${monitorSchemeId}`,
    method: 'get'
  })
}

//************************************** 监测方案评审 *******************************************

// 分页查询监测方案评审列表
export function findOfferMonitorReview(params) {
  return request({
    url: `/offermonitor/findOfferMonitorReview`,
    method: 'get',
    params
  })
}

// 分页查询监测方案历史评审列表
export function findOfferMonitorHisReview(params) {
  return request({
    url: `/offermonitor/findOfferMonitorHisReview`,
    method: 'get',
    params
  })
}

// 监测方案评审
export function judgeRecordMonitorReview(data) {
  return request({
    url: `/simulation/checkOfferProReview`,
    method: 'post',
    data
  })
}

// 查询文件列表
export function trainFile(params) {
  return request({
    url: `/trainFile/list`,
    method: 'get',
    params
  })
}
